<template>
  <div class="login">
    <div class="center">
      <h4>用户注册</h4>
      <userpwd />
      <email />
      <div class="regi">
        <p @click="$router.push(login.path)">已有账号。返回登录</p>
      </div>
      <btn :name="login.name" />
    </div>
  </div>
</template>

<script>
import userpwd from "../components/userpwd"
import btn from "../components/btn";
import email from "./email";

export default {
  name: "register",
  components: {
    btn,
    email,
    userpwd
  },
  data() {
    return {
      login: {
        path: "/login",
        name: "注册"
      }
    };
  }
};
</script>

<style>
</style>